<?php
include_once 'include/common.php';
$is_active = false;
$code = isset($_GET["code"]) ? $_GET["code"] : 0;
if (core::activeUserFromCode($code)) {
    $is_active = true;
}
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Notification</title>
        <meta name="description" content="">
        <link href="Client/www/bootstrap/css/bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="Client/www/js/jquery-1.9.1.min.js"></script>  
        <script src="Client/www/js/jquery-migrate-1.1.1.min.js"></script>
        <script src="Client/www/js/jquery-1.10.0.ui.min.js"></script>
        <script src="Client/www/js/jquery.slimscroll.js"></script>
        <script src="Client/www/bootstrap/js/bootstrap.js"></script>
        <link href="Client/www/css/style.css" rel="stylesheet">

        <style>
        </style>
        <script type="text/javascript">
<?php
if ($is_active) {
?>
            alert("Thank you for activating your account. Welcome to Wedding Helper.");
            window.location = "index.php";
<?php
}
else{
?>
            alert("Wrong activation code.");
<?php
}
?>
        </script>

    </head>
    <body>

    </body>
</html>
